/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.website.course;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 课程表 Model
*
* @author cyx
* @date 2025-07-06 14:24:34
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class CourseModel extends ApiWrapper {

    /** 课程名称 */
    @Schema(description = "课程名称")
    @ExcelProperty(value = "课程名称", order = 1)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(100)
    private String name;

    /** 父级主键集合 */
    @Schema(description = "父级主键集合")
    @ExcelProperty(value = "父级主键集合", order = 2)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String orgIds;

    /** 授课教师 */
    @Schema(description = "授课教师")
    @ExcelProperty(value = "授课教师", order = 3)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(50)
    private String teacher;

    /** 课程阶段（0本科/1硕士） */
    @Schema(description = "课程阶段（0本科/1硕士）")
    @ExcelProperty(value = "课程阶段（0本科/1硕士）", order = 4)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(1)
    private String phase;

    /** 开课学期（如2023秋季） */
    @Schema(description = "开课学期（如2023秋季）")
    @ExcelProperty(value = "开课学期（如2023秋季）", order = 5)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(20)
    private String semester;

    /** 学院 */
    @Schema(description = "学院")
    @ExcelProperty(value = "学院", order = 6)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(100)
    private String department;

    /** 专业 */
    @Schema(description = "专业")
    @ExcelProperty(value = "专业", order = 7)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(100)
    private String major;

    /** 提交用户ID */
    @Schema(description = "提交用户ID")
    @ExcelProperty(value = "提交用户ID", order = 8)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL, 
        ValidatorType.IS_INTEGER
    })
    @ValidatorLenMax(19)
    private Long submittedBy;

    /** 审批管理员ID */
    @Schema(description = "审批管理员ID")
    @ExcelProperty(value = "审批管理员ID", order = 10)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL, 
        ValidatorType.IS_INTEGER
    })
    @ValidatorLenMax(19)
    private Long approvedBy;



}